projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef2a32
)
(auto-revert-handler): Bind `buffer-read-only' locally around the call
author
Luc Teirlinck
<teirllm@auburn.edu>
Fri, 3 Sep 2004 22:25:21 +0000
(22:25 +0000)
committer
Luc Teirlinck
<teirllm@auburn.edu>
Fri, 3 Sep 2004 22:25:21 +0000
(22:25 +0000)
to `revert-buffer'.
lisp/autorevert.el
patch
|
blob
|
history
diff --git
a/lisp/autorevert.el
b/lisp/autorevert.el
index 796ebaa27c82d32cbf283a66a7ee98ea3c7c4ac9..ecf768c573201e1e7456e9596aaa7b0b890706f5 100644
(file)
--- a/
lisp/autorevert.el
+++ b/
lisp/autorevert.el
@@
-421,7
+421,8
@@
This is an internal function used by Auto-Revert Mode."
'no-mini t))
(if auto-revert-tail-mode
(auto-revert-tail-handler)
- (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))
+ (let ((buffer-read-only buffer-read-only))
+ (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes)))
(when buffer-file-name
(when eob (goto-char (point-max)))
(dolist (window eoblist)